package com.ruoyi.purchase.service;

import com.ruoyi.purchase.domain.Inventory;

import java.util.List;

/**
 * inventoryService接口
 * 
 * @author ruoyi
 * @date 2025-08-22
 */
public interface IInventoryService 
{
    /**
     * 查询inventory
     * 
     * @param productId inventory主键
     * @return inventory
     */
    public Inventory selectInventoryByProductId(Long productId);

    /**
     * 查询inventory列表
     * 
     * @param inventory inventory
     * @return inventory集合
     */
    public List<Inventory> selectInventoryList(Inventory inventory);

    /**
     * 新增inventory
     * 
     * @param inventory inventory
     * @return 结果
     */
    public int insertInventory(Inventory inventory);

    /**
     * 修改inventory
     * 
     * @param inventory inventory
     * @return 结果
     */
    public int updateInventory(Inventory inventory);

    /**
     * 批量删除inventory
     * 
     * @param productIds 需要删除的inventory主键集合
     * @return 结果
     */
    public int deleteInventoryByProductIds(Long[] productIds);

    /**
     * 删除inventory信息
     * 
     * @param productId inventory主键
     * @return 结果
     */
    public int deleteInventoryByProductId(Long productId);
}
